react-native how to get size of screen

68

react-native how to get size of screen -

import { Dimensions } from 'react-native';

dimensions: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height
}

Comments

Submit
0 Comments